/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_collect.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_COLLECT
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_collect.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_COLLECT::CTable_PPM_COLLECT( )
 :NPCRecordSet( )
{
  setTableName( "PPM_COLLECT" );
  prepareTable();
  prepareQuery();
 
  OBJ_SRC.setField( "OBJ_SRC", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_SRC );
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  OBJ_ID.setField( "OBJ_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_ID );
  OBJ_TYPE.setField( "OBJ_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_TYPE );
  CREATEDATE.setField( "CREATEDATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATEDATE );
  MODIFYDATE.setField( "MODIFYDATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFYDATE );
  CONTENT.setField( "CONTENT", DATA_CHAR, 4000, 0 );
  makeTableItem( CONTENT );
}


CTable_PPM_COLLECT::CTable_PPM_COLLECT( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_COLLECT" );
  prepareTable();
  prepareQuery();
 
  OBJ_SRC.setField( "OBJ_SRC", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_SRC );
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  OBJ_ID.setField( "OBJ_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_ID );
  OBJ_TYPE.setField( "OBJ_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_TYPE );
  CREATEDATE.setField( "CREATEDATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATEDATE );
  MODIFYDATE.setField( "MODIFYDATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFYDATE );
  CONTENT.setField( "CONTENT", DATA_CHAR, 4000, 0 );
  makeTableItem( CONTENT );
}

CTable_PPM_COLLECT::~CTable_PPM_COLLECT( )
{
    close();
}

